#ifndef LOCALSOCKET_H
#define LOCALSOCKET_H

#include <QObject>
#include <QTcpSocket>
#include <QTimer>

class LocalSocket : public QObject
{
    Q_OBJECT
public:
    explicit LocalSocket(QObject *parent = 0);

signals:

public slots:

private slots:
    void onSocketDisconnected();
    void onSocketConnected();
    void onWrite(const QString &cmd);
    void onReconnect();

private:
    QTimer*     m_timerReconnect;
    QTcpSocket* m_socket;
};

#endif // LOCALSOCKET_H
